* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f5f7fa;
  color: #333;
  min-height: 100vh;
}

.dashboard {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 28px;
  font-weight: 600;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.3);
}

.main-content {
  display: flex;
  flex: 1;
}

.sidebar {
  width: 250px;
  background: white;
  border-right: 1px solid #e9ecef;
  padding: 20px 0;
}

.nav-menu {
  display: flex;
  flex-direction: column;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 25px;
  color: #666;
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: #f8f9fa;
  color: #333;
}

.nav-item.active {
  background: #f0f4ff;
  color: #667eea;
  border-left-color: #667eea;
  font-weight: 600;
}

.nav-item span {
  font-size: 20px;
}

.content-area {
  flex: 1;
  padding: 30px 40px;
  overflow-y: auto;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.section-header h2 {
  font-size: 24px;
  color: #333;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #667eea;
  color: #667eea;
}

.filter-btn.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.btn-primary {
  background: #667eea;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #5568d3;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.content-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.content-card h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.content-card .category {
  display: inline-block;
  background: #667eea;
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 12px;
  font-weight: 500;
}

.content-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
}

.content-card .references {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

.content-card .references strong {
  font-size: 12px;
  color: #333;
  display: block;
  margin-bottom: 8px;
}

.content-card .references a {
  font-size: 12px;
  color: #667eea;
  text-decoration: none;
  display: block;
  margin-top: 6px;
  padding: 4px 0;
}

.content-card .references a:hover {
  text-decoration: underline;
}

.favorite-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s;
}

.favorite-btn:hover {
  transform: scale(1.1);
}

.favorite-btn.active {
  color: #ffd700;
}

.reminders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.reminder-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reminder-card h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.reminder-card .reminder-icon {
  font-size: 24px;
}

.reminder-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.5;
}

.reminder-card .reminder-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

.reminder-card .frequency {
  font-size: 12px;
  color: #999;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #667eea;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.form-container {
  max-width: 600px;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: white;
}

.form-group select {
  cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

.form-group textarea {
  resize: vertical;
}

.form-group input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

.form-group label:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
}

.settings-container {
  max-width: 600px;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e9ecef;
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-info h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 4px;
}

.setting-info p {
  font-size: 14px;
  color: #666;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state p {
  font-size: 16px;
  margin-top: 10px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 20px;
}

.close:hover {
  color: #000;
}

.modal-content h2 {
  margin-bottom: 25px;
  color: #333;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Gamification Styles */
.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 32px;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 4px;
}

.xp-progress-container {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.xp-progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 500;
  color: #333;
}

.xp-progress-bar {
  width: 100%;
  height: 24px;
  background: #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
}

.xp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  transition: width 0.5s ease;
  position: relative;
  overflow: hidden;
}

.xp-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.xp-level-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.goal-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.goal-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.goal-card.completed {
  border-color: #4CAF50;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(76, 175, 80, 0.1) 100%);
}

.goal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 15px;
}

.goal-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

.goal-card-icon {
  font-size: 24px;
}

.goal-card-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.goal-progress-container {
  margin-bottom: 12px;
}

.goal-progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12px;
  color: #666;
}

.goal-progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.goal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.goal-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

.goal-xp-reward {
  font-size: 12px;
  color: #667eea;
  font-weight: 500;
}

.goal-actions {
  display: flex;
  gap: 8px;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-success {
  background: #4CAF50;
  color: white;
}

.btn-success:hover {
  background: #45a049;
}

.btn-danger {
  background: #f44336;
  color: white;
}

.btn-danger:hover {
  background: #da190b;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.achievement-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.achievement-card.unlocked {
  border-color: #ffd700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.achievement-card.locked {
  opacity: 0.5;
  filter: grayscale(100%);
}

.achievement-icon {
  font-size: 48px;
  margin-bottom: 10px;
  display: block;
}

.achievement-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.achievement-description {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.achievement-rarity {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 8px;
}

.achievement-rarity.common {
  background: #e3f2fd;
  color: #1976d2;
}

.achievement-rarity.rare {
  background: #f3e5f5;
  color: #7b1fa2;
}

.achievement-rarity.epic {
  background: #fff3e0;
  color: #e65100;
}

.achievement-rarity.legendary {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
}

.achievement-xp {
  font-size: 11px;
  color: #667eea;
  font-weight: 500;
  margin-top: 6px;
}

.achievement-lock-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  color: #999;
}

.achievement-filter {
  display: flex;
  gap: 8px;
}

.level-up-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.achievement-unlock-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  animation: slideIn 0.3s ease;
  max-width: 300px;
}

.setting-select {
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  color: #333;
  cursor: pointer;
  min-width: 150px;
  font-family: inherit;
}

.setting-select:focus {
  outline: none;
  border-color: #667eea;
}

/* Dark Mode Styles */
body[data-theme="dark"],
html[data-theme="dark"] {
  background: #0f0f1e;
  color: #e0e0e0;
}

body[data-theme="dark"] .dashboard {
  background: #0f0f1e;
}

body[data-theme="dark"] header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body[data-theme="dark"] .sidebar {
  background: #1e1e2e;
  border-right-color: #333;
}

body[data-theme="dark"] .nav-item {
  color: #999;
}

body[data-theme="dark"] .nav-item:hover {
  background: #252538;
  color: #e0e0e0;
}

body[data-theme="dark"] .nav-item.active {
  background: #2a2a3e;
  color: #8b9aff;
  border-left-color: #8b9aff;
}

body[data-theme="dark"] .content-area {
  background: #0f0f1e;
}

body[data-theme="dark"] .section-header h2 {
  color: #e0e0e0;
}

body[data-theme="dark"] .content-card,
body[data-theme="dark"] .reminder-card,
body[data-theme="dark"] .goal-card,
body[data-theme="dark"] .achievement-card,
body[data-theme="dark"] .form-container,
body[data-theme="dark"] .settings-container,
body[data-theme="dark"] .xp-progress-container {
  background: #1e1e2e;
  border-color: #333;
  color: #e0e0e0;
}

body[data-theme="dark"] .content-card:hover,
body[data-theme="dark"] .reminder-card:hover,
body[data-theme="dark"] .goal-card:hover {
  background: #252538;
}

body[data-theme="dark"] .content-card h3,
body[data-theme="dark"] .reminder-card h3,
body[data-theme="dark"] .goal-card-title {
  color: #e0e0e0;
}

body[data-theme="dark"] .content-card p,
body[data-theme="dark"] .reminder-card p,
body[data-theme="dark"] .goal-card-description {
  color: #bbb;
}

body[data-theme="dark"] .content-card .category {
  background: #667eea;
}

body[data-theme="dark"] .filter-btn {
  background: #1e1e2e;
  border-color: #444;
  color: #999;
}

body[data-theme="dark"] .filter-btn:hover {
  border-color: #667eea;
  color: #8b9aff;
}

body[data-theme="dark"] .filter-btn.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

body[data-theme="dark"] .stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body[data-theme="dark"] .goal-progress-bar {
  background: #2a2a3e;
}

body[data-theme="dark"] .xp-progress-bar {
  background: #2a2a3e;
}

body[data-theme="dark"] .achievement-card.locked {
  background: #1a1a2a;
}

body[data-theme="dark"] .modal-content {
  background: #1e1e2e;
  color: #e0e0e0;
}

body[data-theme="dark"] .modal-content h2 {
  color: #e0e0e0;
}

body[data-theme="dark"] .form-group input,
body[data-theme="dark"] .form-group textarea,
body[data-theme="dark"] .form-group select {
  background: #2a2a3e;
  border-color: #444;
  color: #e0e0e0;
}

body[data-theme="dark"] .form-group input:focus,
body[data-theme="dark"] .form-group textarea:focus,
body[data-theme="dark"] .form-group select:focus {
  border-color: #667eea;
}

body[data-theme="dark"] .setting-item {
  border-bottom-color: #333;
}

body[data-theme="dark"] .setting-info h3 {
  color: #e0e0e0;
}

body[data-theme="dark"] .setting-info p {
  color: #999;
}

body[data-theme="dark"] .setting-select {
  background: #2a2a3e;
  border-color: #444;
  color: #e0e0e0;
}

body[data-theme="dark"] .setting-select:focus {
  border-color: #667eea;
}

body[data-theme="dark"] .empty-state {
  color: #999;
}

/* Responsive */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e9ecef;
  }
  
  .nav-menu {
    flex-direction: row;
    overflow-x: auto;
  }
  
  .nav-item {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  
  .nav-item.active {
    border-left: none;
    border-bottom-color: #667eea;
  }
  
  .content-area {
    padding: 20px;
  }
  
  .content-grid,
  .reminders-grid,
  .goals-grid,
  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .stats-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
}

body[data-theme="dark"] .sidebar {
  border-bottom-color: #333;
}

body[data-theme="dark"] .nav-item.active {
  border-bottom-color: #8b9aff;
}

/* Background Noise Styles */
.background-noise-container {
  max-width: 1200px;
}

.noise-controls {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.noise-control-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.noise-control-item label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 15px;
}

.volume-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #e9ecef;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #667eea;
  cursor: pointer;
  transition: background 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
  background: #5568d3;
}

.volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #667eea;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.volume-slider::-moz-range-thumb:hover {
  background: #5568d3;
}

#volumeValue {
  min-width: 45px;
  text-align: right;
  font-size: 14px;
  font-weight: 500;
  color: #667eea;
}

.noise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.noise-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.noise-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.noise-card.playing {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.noise-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}

.noise-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.noise-description {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
}

.noise-play-btn {
  background: #667eea;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.noise-play-btn:hover {
  background: #5568d3;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.noise-card.playing .noise-play-btn {
  background: #f44336;
}

.noise-card.playing .noise-play-btn:hover {
  background: #da190b;
}

.noise-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.noise-info p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* Dark mode for background noise */
body[data-theme="dark"] .noise-controls,
body[data-theme="dark"] .noise-card,
body[data-theme="dark"] .noise-info {
  background: #1e1e2e;
  border-color: #333;
  color: #e0e0e0;
}

body[data-theme="dark"] .noise-card:hover {
  background: #252538;
}

body[data-theme="dark"] .noise-card.playing {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  border-color: #667eea;
}

body[data-theme="dark"] .noise-title {
  color: #e0e0e0;
}

body[data-theme="dark"] .noise-description {
  color: #bbb;
}

body[data-theme="dark"] .noise-control-item label {
  color: #e0e0e0;
}

body[data-theme="dark"] .volume-slider {
  background: #2a2a3e;
}

body[data-theme="dark"] .noise-info {
  background: #1a1a2a;
}

body[data-theme="dark"] .noise-info p {
  color: #999;
}

/* Responsive */
@media (max-width: 768px) {
  .noise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .volume-control {
    flex-direction: column;
    align-items: stretch;
  }
  
  #volumeValue {
    text-align: left;
  }
}


